<template>
  <view class="recommend_view">
    <view class="">
      <image class="recommend_image" :src="item.src" mode="aspectFill"></image>
    </view>
    <view class="recommend_right_view">
      <view class="recommend_txt recommend_title">{{item.title}}</view>
      <view class="recommend_txt recommend_desc">{{item.address}}</view>
      <view class="recommend_txt recommend_desc">{{item.time}}</view>
      <view class="recommend_tip">{{item.tyle}}</view>
      <view class="rmb">
        <text class="rmb_icon">￥</text><text class="rmb_num">{{item.money}} </text><text class="rmb_last"> 起</text>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "recommend",
    data() {
      return {}
    },
    props: {
      src: String,
      title: String,
      address: String,
      time: String,
      money: String,
      tyle: String,
      item: Object
    }
  }
</script>


<style scoped lang="scss">
  .recommend_view {
    width: 90%;
    height: 145px;
    margin: 20px 5% 20px 5%;
    position: relative;
    display: flex;
    justify-content: space-around;

    .recommend_image {
      width: 110px;
      height: 145px;
      border-radius: 10px;
    }

    .recommend_right_view {
      margin-left: 10px;
    }

    .recommend_title {
      height: 40px;
      line-height: 20px;
      font-size: 13px;
      font-weight: 600;
      text-align: LEFT;
      color: #333333;

      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .recommend_desc {
      height: 14px;
      font-size: 10px;
      font-weight: 400;
      text-align: LEFT;
      color: #9B9B9B;
      margin-top: 10px;
    }

    .recommend_tip {
      margin-top: 10px;
      background-color: #E6E6E6;
      font-size: 10px;
      font-weight: 400;
      text-align: center;
      width: 50px;
      height: 20px;
      line-height: 20px;
      border-radius: 4px;
    }

    .rmb {
      position: absolute;
      right: 0;
      bottom: 5px;


      .rmb_icon {
        font-size: 12px;
        font-weight: 700;
        color: #ff0000;
        line-height: 14px;
      }

      .rmb_num {
        width: 22px;
        height: 24px;
        line-height: 23px;
        font-size: 20px;
        font-weight: 700;
        text-align: LEFT;
        color: #ff0000;
      }

      .rmb_last {
        width: 10px;
        height: 14px;
        opacity: 0.4;
        font-size: 10px;
        font-weight: 600;
        text-align: LEFT;
        color: #333333;
        line-height: 16px;
      }
    }
  }
</style>